package io.renren.modules.draw_money_log.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.draw_money_log.entity.V9DrawMoneyLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 佣金转入余额
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-19 18:56:40
 */
@Mapper
public interface V9DrawMoneyLogDao extends BaseMapper<V9DrawMoneyLogEntity> {
    @Update("update v9_draw_money_log set dml_status = 2 where dml_id = #{id}")
    int pass(@Param("id")Integer dml_id);


    @Update("update v9_draw_money_log set dml_status = 3 where dml_id = #{id}")
    int returned(@Param("id")Integer dml_id);

}
